"""
map(function,iterable,...)
iter as arg to function, and return new iter map
"""


def map_demo():
    list1 = [1, 2, 3, 4, 5]
    # 1 4 9 16 25
    for i in map(lambda x: x*x, list1):
        print(i, end=" ")
    print("\r")


if __name__ == '__main__':
    map_demo()
